package test;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class MyFrame extends JFrame{

	public MyFrame(){
		setBounds(200, 100, 450, 650);
	}
	
	public void init(){
		//this.validate();
		this.addWindowListener(new WindowAdapter() {

			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});
		pack();
		setVisible(true);
		setSize(600, 400);
	}
}
